<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
	MYTCONN();
	form_pr('frmnewaco','','','post');
        mn_field('hidden','ED','acoType',2,'','','','');
	echo '<label style="position:absolute;top:30px;left:20px">Agente:</label>';
	mn_field('select','ED','acoAgent',0,"SELECT OriNumero AS ID, OriNombre AS NAME FROM origenes WHERE OriActivo = 1 AND OriTipo = 3",'','','" style="position:absolute;top:30px;left:180px');
	
	echo '<label style="position:absolute;top:60px;left:20px">>Moeda:</label>';
	mn_field('select','ED','acoCurrency',0,"SELECT miso_Cod_elite AS ID, miso_ID AS NAME FROM hd_monedasiso WHERE miso_Cod_elite > 0",'','','" style="position:absolute;top:60px;left:180px');
	
	echo '<label style="position:absolute;top:90px;left:20px">Saldo Inicial:</label>';
	mn_field('text','ED','acoBalance',0,'','','','" style="position:absolute;top:90px;left:180px');
	
	echo '<label style="position:absolute;top:120px;left:20px">Data Abertura:</label><div style="position:absolute;top:120px;left:180px">';
	mn_field('date','ED','acoDate','','frmnewaco','8','','');
	echo '</div>';
	
	mn_field('button','ED','acoSubmit','Registar','','','','" style="padding:10px;position:absolute;top:150px;left:180px" onclick="
		document.frmnewaco.action=\'_response/rsproxy.php?pr=fn_aconew\';
		subform(\'frmnewaco\',\'rsNewAco\');');?>
	</form>
	<div id="rsNewAco" style="position:absolute;top:150px;left:20px;"></div>